require 'edbcli'

cli = ElementDB::Client.new("127.0.0.1:11911")


r = cli.query("DELETE * FROM test_domain;")
r = cli.query("INSERT INTO test_domain VALUES( key1:$key1 );", [{"key1"=>"value1"}])
r = cli.query("INSERT INTO test_domain VALUES( first_name:$first_name, last_name:$last_name );", [{"first_name"=>"grant", "last_name"=>"jones"}])
r = cli.query("SELECT * FROM test_domain WHERE key1 = $key1;", [{"key1"=>"value1", "key2"=>"value2"}])

raise 'zomg error' if r[0]["key1"] != "value1"
